home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group02b.txt
/
000091_icon-group-sender_Sat Oct 26 11:58:31 2002.msg
< prev
next >
Wrap
Internet Message Format
|
2003-01-02
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id g9QIuuE26658
for icon-group-addresses; Sat, 26 Oct 2002 11:56:56 -0700 (MST)
Message-Id: <200210261856.g9QIuuE26658@baskerville.CS.Arizona.EDU>
From: xadeu2002@hotmail.com (adeukcin)
X-Newsgroups: comp.lang.icon
Subject: Icon broken?
Date: 26 Oct 2002 00:09:39 -0700
X-Complaints-To: groups-abuse@google.com
To: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
I am trying to write a simple Regular Expression...
s := "Ic(cond)best"
re := RePat("( \(cond\) )")
i := 0
j := 0
i := ReFind(re,s)
j := ReMatch(re,s,i)
s[i:j] := "on is the"
write(s[i:j])
>From what I understand...
This should output something like...
"Icon is the best"
instead it gives me somthing like...
"Ic(on is the)best"
the \( does not seem to remove the special meaning from (
So if what I am wanting to do is possible...how...
If I am doing this wrong...can you explain?
Thank you very very much!!!